package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 角标管理对象 badge_management
 *
 * @author ruoyi
 * @date 2025-05-28
 */
public class BadgeManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角标ID，主键，自增唯一标识 */
    private Long id;

    /** 角标名称，例如“HOT”“爆款”“新品”等，不允许为空 */
    @Excel(name = "角标名称，例如“HOT”“爆款”“新品”等，不允许为空")
    private String badgeName;

    /** 排序字段，用于控制角标在前端展示的顺序，数字越小越靠前（默认0） */
    @Excel(name = "排序字段，用于控制角标在前端展示的顺序，数字越小越靠前", readConverterExp = "默=认0")
    private Long sortOrder;

    /** 关联商品数量，统计该角标已关联的商品总数，默认为0 */
    @Excel(name = "关联商品数量，统计该角标已关联的商品总数，默认为0")
    private Long associatedProductCount;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 状态标识，0=禁用，1=启用（默认启用），用于控制角标是否可用 */
    @Excel(name = "状态标识，0=禁用，1=启用", readConverterExp = "默=认启用")
    private Integer isActive;

    /** 角标样式，例如“红色背景”“黄色边框”等，用于前端样式控制，允许为空 */
    @Excel(name = "角标样式，例如“红色背景”“黄色边框”等，用于前端样式控制，允许为空")
    private String badgeStyle;

    /** 角标图标URL，用于前端展示角标图标，允许为空 */
    @Excel(name = "角标图标URL，用于前端展示角标图标，允许为空")
    private String iconUrl;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setBadgeName(String badgeName)
    {
        this.badgeName = badgeName;
    }

    public String getBadgeName()
    {
        return badgeName;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setAssociatedProductCount(Long associatedProductCount)
    {
        this.associatedProductCount = associatedProductCount;
    }

    public Long getAssociatedProductCount()
    {
        return associatedProductCount;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setIsActive(Integer isActive)
    {
        this.isActive = isActive;
    }

    public Integer getIsActive()
    {
        return isActive;
    }

    public void setBadgeStyle(String badgeStyle)
    {
        this.badgeStyle = badgeStyle;
    }

    public String getBadgeStyle()
    {
        return badgeStyle;
    }

    public void setIconUrl(String iconUrl)
    {
        this.iconUrl = iconUrl;
    }

    public String getIconUrl()
    {
        return iconUrl;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("badgeName", getBadgeName())
                .append("sortOrder", getSortOrder())
                .append("associatedProductCount", getAssociatedProductCount())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("isActive", getIsActive())
                .append("badgeStyle", getBadgeStyle())
                .append("iconUrl", getIconUrl())
                .append("phone", getPhone())
                .toString();
    }
}
